<template>
	<view class="wrap page">
	  <view class="platforms">
		<uni-notice-bar :show-icon="true" :scrollable="true" :speed="40" :single="true" :text="notice" />
	    <text class="platforms-title">暂只支持河南工业大学和学网,其他平台后续开放</text>
	  </view>
	  <view class="watermark">
		<view v-if="!student">
		  <view class="watermark-input" style="margin-bottom: 15px;margin-top: -20px;">
		    <input id="inputText" placeholder=" 请输入和学账号(2018/2019开头)" type="text" v-model="username" ></input>
		    <button @click="mousuosuo_clear" class="clearInputText">
		      <image src="/static/images/icon-clear-active.png"></image>
		    </button>
		  </view>
		  <view class="watermark-input">
		    <input id="inputText" placeholder=" 请输入和学密码" type="password" v-model="password"></input>
		    <button @click="mousuosuo_clear" class="clearInputText">
		      <image src="/static/images/icon-clear-active.png"></image>
		    </button>
		  </view>
		  <button @click="loginStudent"  class="parsing" hoverClass="parsing-btn-hover">登陆</button>
		</view>
		<view v-if="student">
			<uni-card :title="'你好'+student.realname" isShadow :extra="student.batch_name">
				<text>
					专业：{{student.major_name}}
					登陆{{student.logcount}}次--第{{studyScope.semester||0}}学期--已学时间{{studytime}}分钟
					学习时间：{{studyScope.start?studyScope.start.substr(0,10):""}}~{{studyScope.end?studyScope.end.substr(0,10):""}}
				</text>
			</uni-card>
			<uni-list>
				<uni-list-item :key="c.id" @click="toCourse(c)" :title="c.course_name" v-for="(c,i) in course" 
				 :note="'('+c.chapter_complete+'/'+c.video_count+')'" showArrow :thumb="'https://api.jinkex.com/files?path='+c.course_fm" 
				 thumb-size="lg" rightText="详情" />
			</uni-list>
			<button class="parsing" @click="lookVideo(0)" hoverClass="parsing-btn-hover">后台查询视频+资料(云服务不稳定)</button>
			<button class="parsing" @click="makeAnswer(0)" hoverClass="parsing-btn-hover">后台查询课后题(云服务不稳定)</button>
			<button class="parsing" @click="getziliao()" hoverClass="parsing-btn-hover">后台获取课后资料(云服务不稳定)</button>
			<button class="parsing" @click="getExamination()" hoverClass="parsing-btn-hover">在线获取考试信息(需等十秒请勿退出)</button>
			<!-- <button class="parsing" @click="lookVideo(1)" hoverClass="parsing-btn-hover">在线查询视频+资料(未更新)</button> -->
			<button class="parsing" @click="makeAnswer(1)" hoverClass="parsing-btn-hover">在线查询课后题(需在线等待1分钟)</button>
			<button class="parsing" @click="getCourse(1)" hoverClass="parsing-btn-hover">获取所有课程</button>
			<button class="parsing" @click="getCourse()" hoverClass="parsing-btn-hover">刷新进度(实时进度)</button>
			<button @click="logOutStudent"  class="parsing" hoverClass="parsing-btn-hover">退出</button>
		</view>
		<button open-type="contact" class="parsing">联系客服</button>
		<button class="parsing" open-type="share" hoverClass="parsing-btn-hover">转发邀请好友</button>
	    <view class="faq">
	      <view class="faq-header">
	        <text class="faq-header-title">常见问题</text>
	      </view>
	      <view class="faq-content">
	        <view @click="mousuosuo_showSvPro" class="faq-content-list" data-index="1">
	          <text>使用方法</text>
	          <image src="/static/images/icon-more.png"></image>
	        </view>
			<view @click="mousuosuo_showSvPro" class="faq-content-list" data-index="2">
			  <text>邀请好友说明</text>
			  <image src="/static/images/icon-more.png"></image>
			</view>
			<view @click="mousuosuo_showSvPro" class="faq-content-list" data-index="3">
			  <text>考试说明</text>
			  <image src="/static/images/icon-more.png"></image>
			</view>
			<add-tip :tip="tip" :duration="duration"/>
	      </view>
	    </view>
	  </view>
	</view>
</template>

<script>
	import uniSegmentedControl from '../../components/uni-segmented-control/uni-segmented-control.vue'
	import uniCard from '@/components/uni-card/uni-card.vue'
	import uniNoticeBar from '../../components/uni-notice-bar/uni-notice-bar.vue'
	import uniCollapse from '../../components/uni-collapse/uni-collapse.vue'
	import uniCollapseItem from '../../components/uni-collapse-item/uni-collapse-item.vue'
	import uniList from '../../components/uni-list/uni-list.vue'
	import uniListItem from '../../components/uni-list-item/uni-list-item.vue'
	import addTip from "../../components/struggler-uniapp-add-tip/struggler-uniapp-add-tip"
    export default {
		components:{addTip,uniNoticeBar,uniCard,uniList,uniListItem,uniSegmentedControl,uniCollapse,uniCollapseItem},
		data() {
			return {
				daan:{
					910:[{"value":"3","praxiseId":61531},{"value":"1","praxiseId":61571},{"value":"3","praxiseId":61611},{"value":"2","praxiseId":61532},{"value":"4","praxiseId":61572},{"value":"3","praxiseId":61612},{"value":"1","praxiseId":61533},{"value":"4","praxiseId":61573},{"value":"2","praxiseId":61613},{"value":"3","praxiseId":61534},{"value":"2","praxiseId":61574},{"value":"4","praxiseId":61614},{"value":"1","praxiseId":61535},{"value":"3","praxiseId":61575},{"value":"3","praxiseId":61615},{"value":"2","praxiseId":61536},{"value":"2","praxiseId":61576},{"value":"2","praxiseId":61616},{"value":"4","praxiseId":61537},{"value":"3","praxiseId":61577},{"value":"[1,2]","praxiseId":61551},{"value":"[1,2,3,4]","praxiseId":61591},{"value":"[2,4]","praxiseId":61631},{"value":"[1,2]","praxiseId":61552},{"value":"[1,2,3]","praxiseId":61592},{"value":"[1,2]","praxiseId":61632},{"value":"[3,4,5]","praxiseId":61553},{"value":"[1,2,4]","praxiseId":61593},{"value":"[2,3,4]","praxiseId":61633},{"value":"[1,4]","praxiseId":61554},{"value":"-1","praxiseId":61561},{"value":"-1","praxiseId":61601},{"value":"-1","praxiseId":61641},{"value":"1","praxiseId":61562},{"value":"-1","praxiseId":61602},{"value":"-1","praxiseId":61642},{"value":"-1","praxiseId":61563},{"value":"-1","praxiseId":61603},{"value":"1","praxiseId":61643},{"value":"1","praxiseId":61564}],
					953:[{"value":"3","praxiseId":7574},{"value":"4","praxiseId":7614},{"value":"2","praxiseId":7654},{"value":"3","praxiseId":7575},{"value":"4","praxiseId":7615},{"value":"3","praxiseId":7655},{"value":"1","praxiseId":7576},{"value":"1","praxiseId":7616},{"value":"1","praxiseId":7656},{"value":"1","praxiseId":7577},{"value":"3","praxiseId":7617},{"value":"4","praxiseId":7657},{"value":"4","praxiseId":7578},{"value":"4","praxiseId":7618},{"value":"4","praxiseId":7658},{"value":"2","praxiseId":7579},{"value":"2","praxiseId":7619},{"value":"2","praxiseId":7659},{"value":"2","praxiseId":7580},{"value":"2","praxiseId":7620},{"value":"[1,4]","praxiseId":7594},{"value":"[2,3,4]","praxiseId":7634},{"value":"[1,2,3]","praxiseId":7674},{"value":"[1,2,4]","praxiseId":7595},{"value":"[1,2]","praxiseId":7635},{"value":"[1,2,3,4]","praxiseId":7675},{"value":"[1,2,4]","praxiseId":7596},{"value":"[1,2,4]","praxiseId":7636},{"value":"[1,2,3,4]","praxiseId":7676},{"value":"[2,3,4]","praxiseId":7597},{"value":"-1","praxiseId":7684},{"value":"1","praxiseId":7604},{"value":"1","praxiseId":7644},{"value":"1","praxiseId":7685},{"value":"-1","praxiseId":7605},{"value":"1","praxiseId":7645},{"value":"-1","praxiseId":7686},{"value":"-1","praxiseId":7606},{"value":"-1","praxiseId":7646},{"value":"-1","praxiseId":7687}],
					604:[{"value":"4","praxiseId":56067},{"value":"1","praxiseId":55983},{"value":"4","praxiseId":56025},{"value":"4","praxiseId":56068},{"value":"1","praxiseId":55984},{"value":"4","praxiseId":56026},{"value":"3","praxiseId":56069},{"value":"1","praxiseId":55985},{"value":"4","praxiseId":56027},{"value":"3","praxiseId":56070},{"value":"2","praxiseId":55986},{"value":"3","praxiseId":56028},{"value":"3","praxiseId":56071},{"value":"3","praxiseId":55987},{"value":"1","praxiseId":56029},{"value":"3","praxiseId":56072},{"value":"1","praxiseId":55988},{"value":"2","praxiseId":56030},{"value":"3","praxiseId":56073},{"value":"1","praxiseId":55989},{"value":"4","praxiseId":56031},{"value":"1","praxiseId":56074},{"value":"2","praxiseId":55990},{"value":"1","praxiseId":56032},{"value":"1","praxiseId":56075},{"value":"1","praxiseId":55991},{"value":"1","praxiseId":56033},{"value":"2","praxiseId":56076},{"value":"2","praxiseId":55992},{"value":"3","praxiseId":56034},{"value":"3","praxiseId":56090},{"value":"3","praxiseId":56047},{"value":"1","praxiseId":56099},{"value":"1","praxiseId":56015},{"value":"1","praxiseId":56057},{"value":"1","praxiseId":56100},{"value":"1","praxiseId":56016},{"value":"1","praxiseId":56058},{"value":"1","praxiseId":56101},{"value":"-1","praxiseId":56017},{"value":"1","praxiseId":56059},{"value":"1","praxiseId":56102}],
					699:[{"value":"2","praxiseId":58027},{"value":"3","praxiseId":58067},{"value":"2","praxiseId":58107},{"value":"2","praxiseId":58028},{"value":"2","praxiseId":58068},{"value":"1","praxiseId":58108},{"value":"2","praxiseId":58029},{"value":"2","praxiseId":58069},{"value":"3","praxiseId":58109},{"value":"2","praxiseId":58030},{"value":"4","praxiseId":58070},{"value":"3","praxiseId":58110},{"value":"3","praxiseId":58031},{"value":"1","praxiseId":58071},{"value":"2","praxiseId":58111},{"value":"1","praxiseId":58112},{"value":"2","praxiseId":58032},{"value":"3","praxiseId":58072},{"value":"1","praxiseId":58113},{"value":"3","praxiseId":58033},{"value":"[1,2,3,4,5]","praxiseId":58127},{"value":"[3,4]","praxiseId":58047},{"value":"[2,4]","praxiseId":58087},{"value":"[1,2,3,4,5]","praxiseId":58128},{"value":"[3,4]","praxiseId":58048},{"value":"[1,2,3,4]","praxiseId":58088},{"value":"[1,3]","praxiseId":58129},{"value":"[3,4]","praxiseId":58049},{"value":"[1,3,4]","praxiseId":58089},{"value":"[1,2]","praxiseId":58130},{"value":"-1","praxiseId":58137},{"value":"-1","praxiseId":58057},{"value":"1","praxiseId":58097},{"value":"1","praxiseId":58138},{"value":"1","praxiseId":58058},{"value":"-1","praxiseId":58098},{"value":"-1","praxiseId":58139},{"value":"1","praxiseId":58059},{"value":"-1","praxiseId":58099},{"value":"1","praxiseId":58140}],
					930:[{"value":"4","praxiseId":5536},{"value":"3","praxiseId":5576},{"value":"1","praxiseId":5618},{"value":"1","praxiseId":5537},{"value":"3","praxiseId":5577},{"value":"4","praxiseId":5619},{"value":"4","praxiseId":5538},{"value":"2","praxiseId":5578},{"value":"2","praxiseId":5620},{"value":"3","praxiseId":5539},{"value":"2","praxiseId":5579},{"value":"3","praxiseId":5621},{"value":"4","praxiseId":5540},{"value":"3","praxiseId":5580},{"value":"3","praxiseId":5622},{"value":"2","praxiseId":5541},{"value":"2","praxiseId":5581},{"value":"3","praxiseId":5623},{"value":"3","praxiseId":5542},{"value":"3","praxiseId":5582},{"value":"[1,3,4]","praxiseId":5556},{"value":"[1,2,3,4]","praxiseId":5557},{"value":"[1,2,4]","praxiseId":5558},{"value":"[1,2,3,4]","praxiseId":5559},{"value":"[1,2,3]","praxiseId":5560},{"value":"[1,2,3,4]","praxiseId":5561},{"value":"[1,2,3]","praxiseId":5562},{"value":"[2,4]","praxiseId":5563},{"value":"[1,5]","praxiseId":5564},{"value":"[2,3,4]","praxiseId":5565},{"value":"1","praxiseId":5566},{"value":"-1","praxiseId":5567},{"value":"1","praxiseId":5650},{"value":"-1","praxiseId":5568},{"value":"-1","praxiseId":5608},{"value":"-1","praxiseId":5651},{"value":"-1","praxiseId":5569},{"value":"-1","praxiseId":5609},{"value":"-1","praxiseId":5652},{"value":"1","praxiseId":5570}],
					943:[{"value":"1","praxiseId":62743},{"value":"4","praxiseId":62783},{"value":"4","praxiseId":62823},{"value":"4","praxiseId":62744},{"value":"3","praxiseId":62784},{"value":"2","praxiseId":62824},{"value":"4","praxiseId":62745},{"value":"3","praxiseId":62785},{"value":"2","praxiseId":62825},{"value":"2","praxiseId":62746},{"value":"4","praxiseId":62786},{"value":"3","praxiseId":62826},{"value":"3","praxiseId":62747},{"value":"3","praxiseId":62787},{"value":"3","praxiseId":62827},{"value":"3","praxiseId":62748},{"value":"1","praxiseId":62788},{"value":"4","praxiseId":62828},{"value":"4","praxiseId":62749},{"value":"1","praxiseId":62789},{"value":"[1,2,4]","praxiseId":62763},{"value":"[1,2,3]","praxiseId":62803},{"value":"[1,2,3,4]","praxiseId":62843},{"value":"[1,2,3]","praxiseId":62764},{"value":"[1,2]","praxiseId":62804},{"value":"[1,2,3]","praxiseId":62844},{"value":"[1,2]","praxiseId":62765},{"value":"[1,2,3,4]","praxiseId":62805},{"value":"[1,2,3]","praxiseId":62845},{"value":"[1,2,3,4]","praxiseId":62766},{"value":"-1","praxiseId":62773},{"value":"-1","praxiseId":62813},{"value":"-1","praxiseId":62853},{"value":"1","praxiseId":62774},{"value":"1","praxiseId":62814},{"value":"-1","praxiseId":62854},{"value":"-1","praxiseId":62775},{"value":"-1","praxiseId":62815},{"value":"1","praxiseId":62855},{"value":"-1","praxiseId":62776}],
					942:[{"value":"4","praxiseId":11265},{"value":"4","praxiseId":11266},{"value":"2","praxiseId":11267},{"value":"2","praxiseId":11273},{"value":"2","praxiseId":11274},{"value":"3","praxiseId":11275},{"value":"2","praxiseId":11276},{"value":"4","praxiseId":11277},{"value":"2","praxiseId":11278},{"value":"3","praxiseId":11279},{"value":"4","praxiseId":11280},{"value":"3","praxiseId":11281},{"value":"3","praxiseId":11282},{"value":"4","praxiseId":11283},{"value":"3","praxiseId":11284},{"value":"1","praxiseId":11285},{"value":"1","praxiseId":11286},{"value":"2","praxiseId":11287},{"value":"1","praxiseId":11293},{"value":"1","praxiseId":11294},{"value":"[1,2,4]","praxiseId":11268},{"value":"[1,2,3]","praxiseId":11269},{"value":"[1,2,4]","praxiseId":11340},{"value":"[1,2,3]","praxiseId":11380},{"value":"[1,2,3]","praxiseId":11420},{"value":"[1,2,3]","praxiseId":11341},{"value":"[1,2]","praxiseId":11381},{"value":"[2,3,4]","praxiseId":11421},{"value":"[1,2]","praxiseId":11342},{"value":"[1,2,3,4]","praxiseId":11382},{"value":"1","praxiseId":11264},{"value":"1","praxiseId":11270},{"value":"1","praxiseId":11271},{"value":"-1","praxiseId":11272},{"value":"-1","praxiseId":11288},{"value":"1","praxiseId":11289},{"value":"-1","praxiseId":11290},{"value":"1","praxiseId":11291},{"value":"1","praxiseId":11292},{"value":"-1","praxiseId":11301}],
					973:[{"value":"2","praxiseId":1042},{"value":"3","praxiseId":1082},{"value":"1","praxiseId":1002},{"value":"2","praxiseId":1043},{"value":"3","praxiseId":1083},{"value":"3","praxiseId":1003},{"value":"2","praxiseId":1044},{"value":"1","praxiseId":1084},{"value":"4","praxiseId":1004},{"value":"3","praxiseId":1045},{"value":"1","praxiseId":1085},{"value":"3","praxiseId":1005},{"value":"4","praxiseId":1046},{"value":"1","praxiseId":1086},{"value":"2","praxiseId":1006},{"value":"2","praxiseId":1047},{"value":"1","praxiseId":1087},{"value":"2","praxiseId":1007},{"value":"1","praxiseId":1048},{"value":"1","praxiseId":1088},{"value":"[2,3]","praxiseId":1062},{"value":"[1,2,4,5]","praxiseId":1102},{"value":"[1,3,4]","praxiseId":1022},{"value":"[1,2,3]","praxiseId":1063},{"value":"[1,2,4]","praxiseId":1103},{"value":"[1,2,3,4,5]","praxiseId":1023},{"value":"[1,2,3,5]","praxiseId":1024},{"value":"[2,3,4]","praxiseId":1064},{"value":"[1,2,3]","praxiseId":1104},{"value":"[2,4]","praxiseId":1025},{"value":"-1","praxiseId":1032},{"value":"-1","praxiseId":1072},{"value":"-1","praxiseId":1112},{"value":"1","praxiseId":1033},{"value":"1","praxiseId":1073},{"value":"1","praxiseId":1113},{"value":"-1","praxiseId":1034},{"value":"1","praxiseId":1074},{"value":"1","praxiseId":1114},{"value":"-1","praxiseId":1035}],
					697:[{"value":"2","praxiseId":5410},{"value":"3","praxiseId":5452},{"value":"3","praxiseId":5494},{"value":"4","praxiseId":5411},{"value":"1","praxiseId":5453},{"value":"4","praxiseId":5495},{"value":"3","praxiseId":5412},{"value":"1","praxiseId":5454},{"value":"1","praxiseId":5496},{"value":"2","praxiseId":5413},{"value":"2","praxiseId":5455},{"value":"2","praxiseId":5497},{"value":"3","praxiseId":5414},{"value":"3","praxiseId":5456},{"value":"3","praxiseId":5498},{"value":"1","praxiseId":5415},{"value":"3","praxiseId":5457},{"value":"3","praxiseId":5499},{"value":"4","praxiseId":5416},{"value":"3","praxiseId":5458},{"value":"3","praxiseId":5500},{"value":"4","praxiseId":5417},{"value":"4","praxiseId":5459},{"value":"4","praxiseId":5501},{"value":"4","praxiseId":5418},{"value":"2","praxiseId":5460},{"value":"4","praxiseId":5502},{"value":"3","praxiseId":5419},{"value":"4","praxiseId":5461},{"value":"3","praxiseId":5503},{"value":"3","praxiseId":5420},{"value":"3","praxiseId":5462},{"value":"1","praxiseId":5442},{"value":"-1","praxiseId":5484},{"value":"1","praxiseId":5526},{"value":"1","praxiseId":5443},{"value":"1","praxiseId":5485},{"value":"-1","praxiseId":5527},{"value":"-1","praxiseId":5444},{"value":"1","praxiseId":5486},{"value":"-1","praxiseId":5528},{"value":"-1","praxiseId":5445}],
					882:[{"value":"4","praxiseId":7938},{"value":"1","praxiseId":7978},{"value":"2","praxiseId":8018},{"value":"1","praxiseId":7939},{"value":"2","praxiseId":7979},{"value":"4","praxiseId":8019},{"value":"2","praxiseId":7940},{"value":"2","praxiseId":7980},{"value":"4","praxiseId":8020},{"value":"3","praxiseId":7941},{"value":"4","praxiseId":7981},{"value":"4","praxiseId":8021},{"value":"3","praxiseId":7942},{"value":"4","praxiseId":7982},{"value":"2","praxiseId":8022},{"value":"2","praxiseId":7943},{"value":"3","praxiseId":7983},{"value":"1","praxiseId":8023},{"value":"4","praxiseId":7944},{"value":"2","praxiseId":7984},{"value":"[1,3]","praxiseId":7958},{"value":"[2,3,4]","praxiseId":7998},{"value":"[1,2,3,4]","praxiseId":8038},{"value":"[1,2,3,4]","praxiseId":7959},{"value":"[1,2,3]","praxiseId":7999},{"value":"[1,2,3]","praxiseId":8039},{"value":"[1,3,4]","praxiseId":7960},{"value":"[1,4]","praxiseId":8000},{"value":"[1,2,4]","praxiseId":8040},{"value":"[1,2]","praxiseId":7961},{"value":"1","praxiseId":7968},{"value":"1","praxiseId":8008},{"value":"1","praxiseId":8048},{"value":"1","praxiseId":7969},{"value":"-1","praxiseId":8009},{"value":"-1","praxiseId":8049},{"value":"1","praxiseId":7970},{"value":"-1","praxiseId":8010},{"value":"-1","praxiseId":8050},{"value":"1","praxiseId":7971}],
					913:[{"value":"2","praxiseId":6026},{"value":"2","praxiseId":6066},{"value":"1","praxiseId":6106},{"value":"1","praxiseId":6027},{"value":"2","praxiseId":6067},{"value":"4","praxiseId":6107},{"value":"2","praxiseId":6028},{"value":"3","praxiseId":6068},{"value":"4","praxiseId":6108},{"value":"2","praxiseId":6029},{"value":"4","praxiseId":6069},{"value":"1","praxiseId":6109},{"value":"1","praxiseId":6030},{"value":"2","praxiseId":6070},{"value":"3","praxiseId":6110},{"value":"1","praxiseId":6031},{"value":"2","praxiseId":6071},{"value":"4","praxiseId":6111},{"value":"3","praxiseId":6032},{"value":"1","praxiseId":6072},{"value":"[3,4]","praxiseId":6046},{"value":"[1,2,3,4]","praxiseId":6086},{"value":"[1,3]","praxiseId":6126},{"value":"[1,2,3,4]","praxiseId":6047},{"value":"[1,2,3,4]","praxiseId":6087},{"value":"[1,2,4,5]","praxiseId":6127},{"value":"[1,3,4]","praxiseId":6048},{"value":"[1,2,3]","praxiseId":6088},{"value":"[1,2,4]","praxiseId":6128},{"value":"[1,4]","praxiseId":6049},{"value":"-1","praxiseId":6056},{"value":"1","praxiseId":6096},{"value":"-1","praxiseId":6136},{"value":"1","praxiseId":6057},{"value":"-1","praxiseId":6097},{"value":"-1","praxiseId":6137},{"value":"1","praxiseId":6058},{"value":"-1","praxiseId":6098},{"value":"1","praxiseId":6138},{"value":"-1","praxiseId":6059}],
					914:[{"value":"1","praxiseId":5906},{"value":"3","praxiseId":5946},{"value":"1","praxiseId":5986},{"value":"4","praxiseId":5907},{"value":"3","praxiseId":5947},{"value":"4","praxiseId":5987},{"value":"2","praxiseId":5908},{"value":"2","praxiseId":5948},{"value":"1","praxiseId":5988},{"value":"4","praxiseId":5909},{"value":"1","praxiseId":5949},{"value":"1","praxiseId":5989},{"value":"4","praxiseId":5910},{"value":"4","praxiseId":5950},{"value":"3","praxiseId":5990},{"value":"3","praxiseId":5911},{"value":"4","praxiseId":5951},{"value":"2","praxiseId":5991},{"value":"1","praxiseId":5912},{"value":"4","praxiseId":5952},{"value":"[3,4,5]","praxiseId":5926},{"value":"[1,3,4,5]","praxiseId":5966},{"value":"[1,2]","praxiseId":6006},{"value":"[3,4]","praxiseId":5927},{"value":"[1,2,3,4,5]","praxiseId":5967},{"value":"[1,2,5]","praxiseId":6007},{"value":"[1,2]","praxiseId":5928},{"value":"[2,3]","praxiseId":5968},{"value":"[1,3]","praxiseId":6008},{"value":"[1,2,3,4]","praxiseId":5929},{"value":"-1","praxiseId":5936},{"value":"-1","praxiseId":5976},{"value":"1","praxiseId":6016},{"value":"1","praxiseId":5937},{"value":"1","praxiseId":5977},{"value":"1","praxiseId":6017},{"value":"-1","praxiseId":5938},{"value":"1","praxiseId":5978},{"value":"-1","praxiseId":6018},{"value":"-1","praxiseId":5939}],
					938:[{"value":"2","praxiseId":11560},{"value":"4","praxiseId":11600},{"value":"3","praxiseId":11640},{"value":"3","praxiseId":11561},{"value":"2","praxiseId":11601},{"value":"1","praxiseId":11641},{"value":"2","praxiseId":11562},{"value":"3","praxiseId":11602},{"value":"1","praxiseId":11642},{"value":"4","praxiseId":11563},{"value":"4","praxiseId":11603},{"value":"2","praxiseId":11643},{"value":"1","praxiseId":11564},{"value":"4","praxiseId":11604},{"value":"2","praxiseId":11644},{"value":"4","praxiseId":11565},{"value":"4","praxiseId":11605},{"value":"4","praxiseId":11645},{"value":"3","praxiseId":11566},{"value":"1","praxiseId":11606},{"value":"[1,3,4]","praxiseId":11580},{"value":"[1,3,4]","praxiseId":11620},{"value":"[1,2,3]","praxiseId":11660},{"value":"[1,2]","praxiseId":11581},{"value":"[1,2,3,4]","praxiseId":11621},{"value":"[1,2,3]","praxiseId":11661},{"value":"[1,3]","praxiseId":11582},{"value":"[1,4]","praxiseId":11622},{"value":"[2,4]","praxiseId":11662},{"value":"[1,2,3]","praxiseId":11583},{"value":"1","praxiseId":11590},{"value":"-1","praxiseId":11630},{"value":"1","praxiseId":11670},{"value":"-1","praxiseId":11591},{"value":"-1","praxiseId":11631},{"value":"1","praxiseId":11671},{"value":"-1","praxiseId":11592},{"value":"-1","praxiseId":11632},{"value":"1","praxiseId":11672},{"value":"-1","praxiseId":11593}],
					940:[{"value":"3","praxiseId":6146},{"value":"2","praxiseId":6188},{"value":"1","praxiseId":6230},{"value":"3","praxiseId":6272},{"value":"2","praxiseId":6314},{"value":"1","praxiseId":6356},{"value":"1","praxiseId":6147},{"value":"1","praxiseId":6189},{"value":"1","praxiseId":6231},{"value":"1","praxiseId":6273},{"value":"1","praxiseId":6315},{"value":"1","praxiseId":6357},{"value":"3","praxiseId":6148},{"value":"1","praxiseId":6190},{"value":"4","praxiseId":6232},{"value":"3","praxiseId":6274},{"value":"1","praxiseId":6316},{"value":"4","praxiseId":6358},{"value":"3","praxiseId":6149},{"value":"3","praxiseId":6191},{"value":"2","praxiseId":6233},{"value":"3","praxiseId":6275},{"value":"3","praxiseId":6317},{"value":"2","praxiseId":6359},{"value":"2","praxiseId":6150},{"value":"1","praxiseId":6192},{"value":"4","praxiseId":6234},{"value":"2","praxiseId":6276},{"value":"1","praxiseId":6318},{"value":"4","praxiseId":6360},{"value":"4","praxiseId":6151},{"value":"4","praxiseId":6193},{"value":"-1","praxiseId":6178},{"value":"-1","praxiseId":6220},{"value":"-1","praxiseId":6262},{"value":"-1","praxiseId":6304},{"value":"-1","praxiseId":6346},{"value":"-1","praxiseId":6388},{"value":"-1","praxiseId":6179},{"value":"1","praxiseId":6221},{"value":"1","praxiseId":6263},{"value":"-1","praxiseId":6305}],
					912:[{"value":"1","praxiseId":6679},{"value":"1","praxiseId":6719},{"value":"2","praxiseId":6639},{"value":"4","praxiseId":6680},{"value":"3","praxiseId":6720},{"value":"1","praxiseId":6640},{"value":"4","praxiseId":6681},{"value":"3","praxiseId":6721},{"value":"4","praxiseId":6641},{"value":"1","praxiseId":6682},{"value":"2","praxiseId":6722},{"value":"3","praxiseId":6642},{"value":"4","praxiseId":6683},{"value":"2","praxiseId":6723},{"value":"2","praxiseId":6643},{"value":"2","praxiseId":6684},{"value":"2","praxiseId":6724},{"value":"3","praxiseId":6644},{"value":"3","praxiseId":6685},{"value":"4","praxiseId":6725},{"value":"[1,2,3,4]","praxiseId":6659},{"value":"[3,4]","praxiseId":6699},{"value":"[1,2,3,4]","praxiseId":6739},{"value":"[1,2,3]","praxiseId":6660},{"value":"[2,4]","praxiseId":6700},{"value":"[1,2,3,4]","praxiseId":6740},{"value":"[1,2]","praxiseId":6661},{"value":"[1,3,4]","praxiseId":6701},{"value":"[1,2,3]","praxiseId":6741},{"value":"[1,2,3,4]","praxiseId":6662},{"value":"1","praxiseId":6669},{"value":"1","praxiseId":6709},{"value":"1","praxiseId":6749},{"value":"1","praxiseId":6670},{"value":"-1","praxiseId":6710},{"value":"1","praxiseId":6750},{"value":"-1","praxiseId":6671},{"value":"-1","praxiseId":6711},{"value":"1","praxiseId":6751},{"value":"-1","praxiseId":6672}],
					605:[{"value":"2","praxiseId":4386},{"value":"3","praxiseId":4306},{"value":"1","praxiseId":4346},{"value":"3","praxiseId":4387},{"value":"1","praxiseId":4307},{"value":"2","praxiseId":4347},{"value":"4","praxiseId":4388},{"value":"3","praxiseId":4308},{"value":"1","praxiseId":4348},{"value":"4","praxiseId":4389},{"value":"3","praxiseId":4309},{"value":"4","praxiseId":4349},{"value":"2","praxiseId":4390},{"value":"2","praxiseId":4310},{"value":"3","praxiseId":4350},{"value":"3","praxiseId":4391},{"value":"1","praxiseId":4311},{"value":"2","praxiseId":4351},{"value":"1","praxiseId":4352},{"value":"3","praxiseId":4392},{"value":"[1,2,3,4]","praxiseId":4366},{"value":"[1,2,3]","praxiseId":4406},{"value":"[1,2,3]","praxiseId":4326},{"value":"[2,3]","praxiseId":4367},{"value":"[1,2,3]","praxiseId":4407},{"value":"[1,2,3]","praxiseId":4327},{"value":"[1,2,3]","praxiseId":4368},{"value":"[1,2]","praxiseId":4408},{"value":"[2,3]","praxiseId":4328},{"value":"[1,2,3,4]","praxiseId":4369},{"value":"-1","praxiseId":4376},{"value":"1","praxiseId":4416},{"value":"1","praxiseId":4336},{"value":"1","praxiseId":4377},{"value":"-1","praxiseId":4417},{"value":"1","praxiseId":4337},{"value":"1","praxiseId":4378},{"value":"1","praxiseId":4418},{"value":"-1","praxiseId":4338},{"value":"-1","praxiseId":4379}]
				},
				tip:"快分享给你的同学吧～可获得积分哦～",
				duration:1,
				course: [],
				username: '',
				password: '123456',
				notice:"",
				studyScope:{},
				studytime: 0,
				student:null,
				invitation:"",
				courseList:{},
				progress:0,
			}
		},
		onShareAppMessage(res) {
			return {
				title: '考试,作业,视频',
				path: '/pages/examination/index?invitation='+this.$store.state.userInfo._id
			}
		},
		onShareTimeline(res) {
			return {
				title: '考试,作业,视频',
				path: '/pages/examination/index?invitation='+this.$store.state.userInfo._id
			}
		},
		onLoad(e) {
			wx.showShareMenu({
			  withShareTicket: true,
			  menus: ['shareAppMessage', 'shareTimeline']
			})
			uniCloud.callFunction({
				name: 'notice',
				data:{action:"get",type:0}
			}).then((res) => {
				this.notice=res.result.data[0].content
			})
		},
		onPullDownRefresh(){
			this.getCourse();
			uni.showToast({
				title:"已刷新",
				icon:"none"
			})
		},
		methods: {
			//https://api.jinkex.com/exam/v1/user/enjoin
			async getExamination(){
				this.progress=0
				let res=await uni.request({
					url: "https://api.jinkex.com/exam/v1/user/test?token="+
					this.student.token+"&school_host=haut.hnscen.cn",
					method:"GET"
				})
				for(let v of res[1].data.data){
					if(this.daan[v.test_id]){
						await uni.request({
							url: "https://api.jinkex.com/exam/v1/user/enjoin",
							data:{
								token:this.student.token,
								school_host: "haut.hnscen.cn",
								testId: v.test_id
							},
							method:"POST"
						})
						await uni.request({
							url: "https://api.jinkex.com/exam/v1/user/submit",
							data:{
								token:this.student.token,
								data: JSON.stringify(this.daan[v.test_id]),
								isAuto: 0,
								orderIndex: 1,
								school_host: "haut.hnscen.cn",
								testId: v.test_id
							},
							method:"POST"
						})
						uni.showLoading({
							title: '已完成' + this.progress + '/'+res[1].data.data.length+'个'
						});
					}
				}
				uni.hideLoading()
				uni.showModal({
					content:"查询完成您已完成所有考试！"
				})
			},
			mousuosuo_showSvPro(e) {
			    var index = e.target.dataset.index
			    switch (index) {
			      case '1':
					uni.showModal({
						title: '使用说明',
						content: '输入学号密码查询，密码默认123456。',
						showCancel: false
					});
			        break
				  case '2':
						uni.showModal({
							title: '邀请好友说明',
							content: '转发小程序给微信好友或微信群，好友点击使用(登录授权)后即算邀请成功；成功邀请1位好友可获得100积分，邀请好友及获取积分无上限。',
							showCancel: false
						});
				    break
				  case '3':
				    uni.showModal({
				    	title: '说明',
				    	content: '视频+资料24分，作业18分，考试暂时未开放如需要通知请订阅消息，详情到学校官网查看。',
				    	confirmText:"同意订阅",
				    	cancelText:"拒绝",
				    	success:  (res)=> {
				    	  if (res.confirm) {
				    		  //调用订阅
				    		  this.requestSubscribe();
				    	  }
						 }
				    });
				    break
			      default:
			        break
			    }
			},
			getziliao(){
				uniCloud.callFunction({
					name: 'hexueuser',
					data: {
						action:"ziliao",
						data:this.courseList.videoList,
						token:this.student.token
					}
				})
			},
			async lookVideo(type){
				if(type){
					this.progress=0
					for(let k of this.courseList.videoList){
						let sout=await uni.request({
							url: "https://api.jinkex.com/edu/v1/classroom/"+k.course_id+"/"+
							k.open_id+"/"+k.id+"?token="+
							this.student.token+"&school_host=haut.hnscen.cn",
							method:"GET"
						})
						console.log(sout[1].data.data)
						if(sout[1].data.data.resource.hasCount!=0&&sout[1].data.data.resource.progress!="1.000"){
							sout[1].data.data.resource.resourceList.forEach(r=>{
								uni.request({
									url:"https://api.jinkex.com/edu/v1/classroom/"+k.course_id+"/"+
									k.open_id+"/resource/"+k.id,
									method:"POST",
									data:{
										token:this.student.token,
										school_host:"haut.hnscen.cn",
										resourceId:r.id
									}
								})
							})
						}
						while (1) {
							let res=await uni.request({
								url: "https://api.jinkex.com/edu/v1/classroom/"+k.course_id+"/"+
								k.open_id+"/rec/"+k.id+"?token="+
								this.student.token+"&school_host=haut.hnscen.cn",
								method:"POST",
								data:{
									token:this.student.token,
									school_host:"haut.hnscen.cn",
									lastTime:60,
									hasTime:60
								}
							})
						    if(res[1].data.data.progress==1){
						    	this.progress+=1
						    	uni.showLoading({
						    		title: '已完成' + this.progress + '/'+this.courseList.videoList.length+'个'
						    	});
								break;
						    }
						}
						
						
						
					}
					uni.hideLoading()
					uni.showModal({
						content:"查询完成您已完成所有视频！"
					})
				}else{
					uniCloud.callFunction({
						name: 'hexueuser',
						data: {
							action:"lookVideo",
							data:this.courseList.videoList,
							token:this.student.token
						}
					})
				}
				
				
			},
			async makeAnswer(type){
				if(type){
					let temp=this.courseList.subjectList.concat(this.courseList.subjectList)
					console.log(temp.length)
					this.progress=0
					for(let k of temp){
						let res=await uni.request({
						url:"https://api.jinkex.com/edu/v1/classroom/"+k.course_id+"/"+
						k.open_id+"/"+k.id+"?token="+
						this.student.token+"&school_host=haut.hnscen.cn",
						method:"GET"})
						let kdc=[];
						for(let aw of res[1].data.data.praxise.praxiseList){
							//拼接答案
							kdc.push({praxiseId:aw.id,value:aw.answer||(aw.type=='muti'?"[1]":"1")})
						}
						console.log(JSON.stringify(kdc))
						//提交答案
						let kdcnb=await uni.request({
							url:"https://api.jinkex.com/edu/v1/classroom/"+k.course_id+"/"+k.open_id+"/submit/"+k.id,
							method:"POST",
							data:{
								token:this.student.token,
								school_host:"haut.hnscen.cn",
								items:JSON.stringify(kdc)
							}
						})
						this.progress+=0.5
						uni.showLoading({
							title: '进度' + this.progress + '/'+this.courseList.subjectList.length+'个'
						});
						
					}
					uni.hideLoading()
					uni.showModal({
						content:"查询完成您的所有作业已经完成！"
					})
				}else{
					uniCloud.callFunction({
						name: 'hexueuser',
						data: {
							action:"answer",
							data:this.courseList.subjectList,
							token:this.student.token
						}
					})
				}
				
				
			},
			pay(type) {
				
				let selectedProvider = ''
				new Promise((resolve, reject) => {
					uni.showModal({
						title: '温馨提示',
						content: '请注意！1.你需要保证别处没有账户一起登陆。2.请保证在网络通畅的情况下。3.提交完成后可按刷新按钮刷新进度，如许久未变可点击下方联系客服处理。',
						success() {
							resolve(["微信支付"])
						}
					});
				}).then((providerList) => {
					return new Promise((resolve, reject) => {
						uni.showActionSheet({
							itemList: providerList,
							success(res) {
								resolve("微信支付")
							},
							fail() {
								reject(new Error('取消支付'))
							}
						})
					})
			
				}).then((provider) => {
					selectedProvider = 'wxpay'
					return uniCloud.callFunction({
						name: 'pay',
						data: {
							provider:selectedProvider,
							outTradeNo: this.student.num+new Date().getTime()
						}
					})
				}).then((res) => {
					console.log(res);
					if (res.result.orderInfo) {
						return new Promise((resolve, reject) => {
							uni.showModal({
								content:"您的积分预计抵扣"+(this.$store.state.userInfo.integral/100)+"元",
								success() {
									uni.requestPayment({
										// #ifdef APP-PLUS
										provider: selectedProvider,
										// #endif
										// #ifdef MP-WEIXIN
										...res.result.orderInfo,
										// #endif
										// #ifdef APP-PLUS || MP-ALIPAY
										orderInfo: res.result.orderInfo,
										// #endif
										complete() {
											resolve(res.result.outTradeNo)
										}
									})
								}
							})
						})
					} else if(res.result.msg){
						return new Promise((resolve, reject) => {
							uni.showModal({
								content:"您用1000积分成功抵扣10元",
								success() {
									resolve(res.result.outTradeNo)
								}
							})
						})
					}else{
						throw new Error(res.result.msg)
					}
				}).then((outTradeNo) => {
					console.log(outTradeNo)
					return uniCloud.callFunction({
						name: 'order-query',
						data: {
							outTradeNo
						}
					})
				}).then((res) => {
					if (res.result.orderPaid) {
						uni.showModal({
							content: '订单已支付',
							showCancel: false
						})
						uni.showModal({
							title: '温馨提示',
							content: "即将开始刷请勿退出！",
							success:(r)=> {
								if(type==0){
									this.lookVideo();
								}else{
									this.makeAnswer();
								}
							}
						})
					}
				}).catch((err) => {
					uni.showModal({
						content: err.message || '支付失败',
						showCancel: false
					})
				})
			
			},
			requestSubscribe(){
				wx.requestSubscribeMessage({
			        tmplIds:  ['qKAfSDw9wp7X6cLj12k_cVy_e2X_QgFkdB3zFvNRUIs'],
			        success :(res)=>{
			          console.log("订阅消息 成功 "+res);
			         },
			        fail :(errCode,errMessage) =>{ 
			          console.log("订阅消息 失败 "+errCode+" message "+errMessage);
			        },
			        complete:(errMsg)=>{
			          console.log("订阅消息 完成 "+errMsg);
			        }
			      });
			},
			toCourse(c){
				uni.navigateTo({
					url:"detail?course_id="+c.course_id+"&open_id="+c.open_id
				})
			},
			logOutStudent(){
				this.student=null
				this.course=[]
				this.studyScope={}
				uni.removeStorageSync("stutoken")
			},
			loginStudent(){
				uni.showLoading({
					title:"登陆中"
				})
				uni.request({
					url: "https://api.jinkex.com/edu/v1/student/login",
					method: 'POST',
					data: {
						device: "app",
						num: this.username,
						password: this.password,
						school_host: "haut.hnscen.cn",
						token: ""
					},
					success: (res) => {
						console.log(res)
						uni.hideLoading()
						uni.showModal({
							content:res.data.msg
						})
						uni.showLoading({
							title:"获取课程列表"
						})
						if(res.data.code==0){
							uniCloud.callFunction({
								name: 'hexueuser',
								data:{
									action:"login",
									data:res.data.data
								}
							})
							this.student=res.data.data
							uni.setStorageSync("stutoken",this.student.token)
							this.getStudyTime()
							uni.hideLoading()
							this.getCourse()
						}else{
							uni.hideLoading()
						}
					},
					fail:(err)=>{
						console.log(err)
						uni.hideLoading()
						uni.showModal({
							content:err
						})
					}
				})
				
			},
			mousuosuo_clear () {
			    this.username = ''
				this.password = ''
			},
			getStudyTime(){
				uni.request({
					url:"https://api.jinkex.com/edu/v1/studentcourse/getcoursecount?token="+
					this.student.token+"&school_host=haut.hnscen.cn",
					success: (res) => {
						console.log(res.data.data)
						this.studytime=(res.data.data.studytime/60).toFixed(2)
						console.log(this.studytime)
					}
				})
			},
			userCount(){
				//不知道做何用。。先放着吧
				uni.request({
					url:"https://api.jinkex.com/pay/feerec/userCount?token="+
					this.student.token+"&school_host=haut.hnscen.cn",
					success: (res) => {
						console.log(res)
					}
				})
			},
			async getCourse(type){
				uni.showLoading({
					title:"获取课程列表中"
				})
				let res= await  uni.request({
					url:"https://api.jinkex.com/edu/v1/studentcourse/getstuentcourse?token="+
					this.student.token+"&school_host=haut.hnscen.cn"
				})
				console.log(res)
				let courses=[]
				let index =0
					for(let v of res[1].data.data){
						for(let t of v.course){
							if(t.rec_status_code==2){
								courses.push(t)
							}
						}
					}
				this.studyScope=666
				console.log(courses)
				this.course=courses
				let kdcnb=[]
				let dati=[]
				for(let courseitem of this.course){
					let courselist= await uni.request({
						url:"https://api.jinkex.com/edu/v1/classroom/"+courseitem.course_id+"/"+
						courseitem.open_id+"?token="+
						this.student.token+"&school_host=haut.hnscen.cn",
						method:"GET"
					})
					console.log(courselist)
					if(courselist[1].data.data.chapter){
						for(let videolist of courselist[1].data.data.chapter){
							for(let video of videolist.children){
								if(video.videoid==""){
									if(video.rec.praxise_submit_count!=2){////要改
										dati.push({
											course_id:courseitem.course_id,
											open_id:courseitem.open_id,
											id:video.id
										})
									}
								}else if(type||video.rec.progress!="1.000"||video.rec.resource_progress!="1.000"){///要改
									kdcnb.push({
										course_id:courseitem.course_id,
										open_id:courseitem.open_id,
										id:video.id
									})
								}
							}
						}
					}
				}
				this.courseList={videoList:kdcnb,subjectList:dati}//要改
				uni.stopPullDownRefresh()
				uni.hideLoading()
				uni.showModal({
					content: '一共'+this.courseList.videoList.length+'条视频或者资料（可能会不准哦）～'+
					this.courseList.subjectList.length+'章作业待处理！'
				})
			},
			getCourses(){
				uni.showLoading({
					title:"获取课程列表中"
				})
				uniCloud.callFunction({
					name: 'hexueuser',
					data:{action:"getCourse",data:{token:this.student.token}}
				}).then(r=>{
					console.log(r)
					this.courseList=r.result
					uni.hideLoading()
					uni.showModal({
						title:"提示",
						content: '一共'+r.result.videoList.length+'条视频或者资料（可能会不准哦）～'+r.result.subjectList.length+'章作业待处理！'
					})
				})
			}
		}
	}
</script>

<style>
	.content{
		text-align: center;
	}
	.uni-list-item__icon-img {
	    height: 44px!important;
	    width: 44px!important;
	}
	page {
	    background-color: #0000;
	    height: 100%;
	    font-size: 32rpx;
	    line-height: 1.6;
	}
	.parsing{
		margin: 10px auto;
		font-size: 15px;
	}
	.wrap {
	    height: 100%;
	}
	
	.page-body {
	    height: 400rpx;
	    padding-top: 28rpx;
	}
	
	.page-section {
	    position: relative;
	    overflow: hidden;
	    width: 514rpx;
	    margin: 0 auto;
	}
	
	.page-section swiper {
	    height: 194rpx;
	}
	
	.page-section_center {
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	}
	
	.page-section:last-child {
	    margin-bottom: 0;
	}
	
	.page-section-gap {
	    box-sizing: border-box;
	    padding: 0 30rpx;
	}
	
	.page-section-title {
	    font-size: 50rpx;
	    color: #999;
	    margin-bottom: 10rpx;
	    padding-left: 30rpx;
	    padding-right: 30rpx;
	}
	
	.page-section-gap .page-section-title {
	    padding-left: 0;
	    padding-right: 0;
	}
	
	.show_view {
		display: none !important;
	}
	
	.demo-text-1 {
	    position: relative;
	    align-items: center;
	    justify-content: center;
	    background-color: #1aad19;
	    color: #fff;
	    font-size: 36rpx;
	}
	
	.demo-text-1:before {
	    content: 'A';
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%,-50%);
	}
	
	.demo-text-2 {
	    position: relative;
	    align-items: center;
	    justify-content: center;
	    background-color: #2782d7;
	    color: #fff;
	    font-size: 36rpx;
	}
	
	.demo-text-2:before {
	    content: 'B';
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%,-50%);
	}
	
	.demo-text-3 {
	    position: relative;
	    align-items: center;
	    justify-content: center;
	    background-color: #f1f1f1;
	    color: #353535;
	    font-size: 36rpx;
	}
	
	.demo-text-3:before {
	    content: 'C';
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%,-50%);
	}
	
	button {
	    margin-bottom: 30rpx;
	}
	
	button:last-child {
	    margin-bottom: 0;
	}
	
	.page-section-title {
	    padding: 0;
	}
	
	.swiper-item {
	    overflow: hidden;
	    display: block;
	    margin-bottom: 14rpx;
	}
	
	.page-section-title {
	    margin-top: 60rpx;
	    position: relative;
	}
	
	.info {
	    position: absolute;
	    right: 0;
	    color: #d81818;
	    font-size: 30rpx;
	}
	
	.page-foot {
	    margin-top: 50rpx;
	}
	
	.platforms {
	    background-color: #99CCFF;
	    width: 100%;
	    z-index: 1;
	}
	
	.platforms-title {
	    display: block;
	    font-size: 15px;
	    color: #999999;
	    text-align: center;
		height: 100px;
	}
	
	.platforms-title::before,.platforms-title::after {
	    content: '';
	    display: inline-block;
	    width: 6rpx;
	    height: 6rpx;
	    background-color: #999999;
	    border-radius: 2px;
	    transform: rotate(45deg);
	    vertical-align: middle;
	}
	
	.platforms-title::before {
	    margin-right: 8rpx;
	}
	
	.platforms-title::after {
	    margin-left: 8rpx;
	}
	
	.platforms-item {
	    float: left;
	    width: 80rpx;
	    text-align: center;
	    margin-right: 58rpx;
	}
	
	.platforms-item:last-child {
	    margin-right: 0;
	}
	
	.platforms-item image {
	    display: block;
	    width: 60rpx;
	    height: 60rpx;
	    margin: 0 auto;
	}
	
	.platforms-item text {
	    display: block;
	    font-size: 20rpx;
	    color: #fff;
	    text-align: center;
	    white-space: nowrap;
	    margin-top: 2rpx;
	}
	
	.dots {
	    overflow: hidden;
	    width: 50rpx;
	    margin: 40rpx auto 80rpx;
	}
	
	.dot {
	    float: left;
	    width: 26rpx;
	    height: 8rpx;
	    border-radius: 20rpx;
	    margin-right: 16rpx;
	    background-color: white;
	}
	
	.dot:last-child {
	    margin-right: 0;
	}
	
	.active {
	    width: 8rpx;
	    height: 8rpx;
	    background-color: #fff;
	}
	
	.watermark {
		margin-top: -25px;
		border: 1px solid rgba(1,1,1,0);
	    background-color: #fff;
	    border-top-left-radius: 20rpx;
	    border-top-right-radius: 20rpx;
	    z-index: 9;
	}
	
	.watermark-input {
	    
	    width: 664rpx;
	    height: 108rpx;
		margin: auto;
	    z-index: 9;
	    background-color: #fff;
	    box-shadow: 0 12rpx 28rpx rgba(153,153,153,0.34);
	    border-radius: 16rpx;
	}
	
	.watermark-input input {
	    float: left;
	    width: 80%;
	    height: 100%;
	    font-size: 28rpx;
	    padding-left: 30rpx;
	}
	
	.clearInputText {
	    display: flex;
	    width: 100rpx;
	    height: 100%;
	    border: none;
	    background-color: #fff;
	    align-items: center;
	}
	
	.clearInputText:after {
	    border: none;
	}
	
	.clearInputText image {
	    display: block;
	    width: 30rpx;
	    height: 30rpx;
	}
	
	.parsing {
	    overflow: hidden;
	    display: block;
	    width: 664rpx;
	    height: 88rpx;
	    line-height: 88rpx;
	    color: #fff;
	    background-color: #337aff;
	    box-shadow: 0 14rpx 28rpx rgba(51,122,255,0.3);
	}
	
	.appreciate {
	    color: #000;
	    background-color: #f8f8f8;
	    box-shadow: none;
	}
	
	.parsing-btn-hover {
	    background: #3f6ddd;
	    border: 1px solid #1e4ecb;
	}
	
	.list-hover-class {
	    background-color: #EBEBEB;
	    border-radius: 12rpx;
	}
	
	.faq {
	    width: 664rpx;
	    margin: 106rpx auto 0;
	}
	
	.faq-header {
	    display: flex;
	    justify-content: space-between;
	    margin-bottom: 16rpx;
	}
	
	.faq-header-title {
	    font-size: 28rpx;
	    font-weight: 600;
	}
	
	.faq-header-more {
	    font-size: 24rpx;
	    color: #989898;
	}
	
	.faq-content {
	    width: 100%;
	    border-radius: 12rpx;
	    background: #f6f6f6;
	}
	
	.faq-content-list {
	    overflow: hidden;
	    height: 108rpx;
	    line-height: 108rpx;
	}
	
	.faq-content-list text {
	    font-size: 26rpx;
	    color: #666;
	    margin-left: 32rpx;
	}
	
	.faq-content-list image {
	    float: right;
	    width: 16rpx;
	    height: 22rpx;
	    margin-top: 43rpx;
	    margin-right: 38rpx;
	}
	
	.contact {
	    font-size: 24rpx;
	    text-align: center;
	    padding-top: 70rpx;
	    padding-bottom: 32rpx;
	}
	
	.contact-copy {
	    color: #337aff;
	    text-decoration: underline;
	    margin-left: 30rpx;
	}
	.center {
	  text-align: center;
	  color: #f0f0f0;
	}
</style>